<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<style type="text/css">
.file {
	width:300px;height:28px;
	filter:alpha(opacity=80);
}
</style>
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//添加颜色变化
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
	//进行客户端数据验证
	$("#uploadForm").submit(function(){
		var upfile = $(":input#uploadfile").val();
		if(upfile == ""){
			alert("请选择你要上传的文件！");
			return false;
		}
		return ture;
	});
});
</script>
<title><{$title}></title>
</head>

<body>
<fieldset>
<legend style="color:#333; font-size:14px; font-weight:bold;">视频文件上传</legend>
<form id="uploadForm" enctype="multipart/form-data" action="index.php?controller=admin&action=addMediaAction" method="post">
<table cellpadding="0" cellspacing="0">
<{if $res_broadcastCategory == "NULL"}>
    <tr><td colspan="2"><span style="color:red;">*重要提示：系统暂没有类别，请先添加类别！<a href="index.php?controller=admin&action=addBroadcastCategory">添加类别</a></span></td></tr>
<{else}>
<tr>
    <td>
    <input type="file" id="uploadfile" name="uploadfile" class="file" />
    <input type="submit" name = "submit" value="上传文件" style="height:29px;" />
    </td>
    <td>
    &nbsp;<span style="color:red;">*请选择上传的文件必须！</span>
    </td>
</tr>
<{/if}>
</table>
</form>
</fieldset>
</body>
</html>
